package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.OptionScheduleDao;
import pojo.OptionSchedule;
import service.OptionScheduleManager;

@Service
public class OptionScheduleManagerImpl implements OptionScheduleManager {

	@Autowired
	private OptionScheduleDao optionScheduleDao;

	@Transactional
	@Override
	public OptionSchedule addInfo(OptionSchedule info) {
		return optionScheduleDao.addInfo(info);
	}

	@Transactional
	@Override
	public void addInfoList(List<OptionSchedule> infoList) {
		optionScheduleDao.addInfoList(infoList);
	}

	@Transactional
	@Override
	public OptionSchedule getResult(OptionSchedule param) {
		
		return optionScheduleDao.getResult(param);
	}

	@Transactional
	@Override
	public List<OptionSchedule> getResults(String like) {
		
		return optionScheduleDao.getResults(like);
	}

	@Transactional
	@Override
	public boolean updateInfo(OptionSchedule info) {
		
		return optionScheduleDao.updateInfo(info);
	}

	@Transactional
	@Override
	public boolean deleteInfo(OptionSchedule info) {
		
		return optionScheduleDao.deleteInfo(info);
	}

}
